# Maintainer: Adrian Siekierka <kontakt@asie.pl>
pkgname=font-ipa
pkgver=003.03
pkgrel=0
pkgdesc="Japanese outline fonts by Information-technology Promotion Agency"
url="http://ipafont.ipa.go.jp/"
arch="noarch"
license="IPA"
depends="encodings font-alias mkfontscale mkfontdir fontconfig"
makedepends=""
filever=${pkgver/./}
source="https://ipafont.ipa.go.jp/IPAfont/IPAfont$filever.zip"
builddir="$srcdir/IPAfont$filever"

package() {
	cd "$builddir"

	install -d "${pkgdir}/usr/share/fonts/TTF"
	install -m644 *.ttf "${pkgdir}/usr/share/fonts/TTF/"

	install -d "${pkgdir}/usr/share/licenses/font-ipa"
	install -m644 IPA_Font_License_Agreement_v1.0.txt "${pkgdir}/usr/share/licenses/font-ipa/"
}

sha512sums="d3e4a1f189356b7a8b0cba9c706987413c8107f9e43ab2ccf52be6d0483efad8c97b68e075a35c5d04603c460dac7f282c4645ddc8318e993368ec47407f894e  IPAfont00303.zip"
